﻿//javaScript
function login(form){

 var loginname=document.getElementById("loginname1").value;
 var password=document.getElementById("password1").value;
 if(loginname=="" || password==""){
   alert('用户名或者密码不能为空');
   return false;
 }
 return true; 


}